package com.qf.service.impl;

import com.qf.entity.custom.SetMealCustom;
import com.qf.mapper.custom.SetMealCustomMapper;
import com.qf.service.SetMealCustomService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @Description TODO
 * @Author 刘珈玮
 * @Date 2020/7/25 10:32
 */
@Service
public class SetMealCustomServiceImpl implements SetMealCustomService {
    @Autowired
    private SetMealCustomMapper setMealCustomMapper;

    @Override
    public List<SetMealCustom> getSetMealProduct(Integer setMealId) {
        if (setMealId != null) {
            List<SetMealCustom> setMealCustoms = setMealCustomMapper.selectSetMealProduct(setMealId);
            if (setMealCustoms != null) {
                return setMealCustoms;
            } else {
                return null;
            }
        } else {
            return null;
        }
    }
}
